<?php
  /*ELABORO: KARYNA ROSALES BOTELLO*/
  /*MODULO OPCIONES DEL SISTEMA*/
  INCLUDE "F_CONX.php";
  $V_OUT="";
  $V_OUT.="<HTML>
           <HEAD>
           <TITLE>MENU</TITLE>";
?>
  <STYLE TYPE='TEXT/CSS'>
  <!--
    body {
	text-align:center;
	background-color:#ffffff;
	background-image: url(imagenes/menu.jpg);
	margin-left: 0px;
	margin-top: 8px;
	margin-right: 0px;
	margin-bottom: 0px;
}
    TD.ROW1 { background-color: #FFFFFF; HEIGHT:10pt; }
    TD.ROW2 { background-color: #666666; color: #FFFFFF; }
    TH.ROW1 { background-color: #666666; color: #FFFFFF; font-family: Verdana; }
    #MENU
     {
      margin:auto;
      text-align:center;
      width:100%;
      font-family: Verdana, Arial, Helvetica,sans-serif;
      font-size: 7.5pt;
      border:0;
      padding: 1px;
      background=#FAFAFF;}
    #MENU a
     {
     	display:block;
     	width:100%;
     	text-decoration:none;
     	color:#FFFFFF;
     	font-weight: bold;
     	}
    #MENU a:active,#menu a:link,#menu a:visited
          {background-color: #339933;}
    #MENU a:hover
          {background-color: #FF9933;}
        -->
  </STYLE>
<?php
  $V_OUT.="</HEAD>";
  //IF (SUBSTR($G_DIVISION,2,3)=="000")
  IF ($G_DIVISION!='')
     IF ($G_DIVISION=='ON000') $A_MODULOS=ARRAY("M_SELCAP.php&CARGA","M_SELMOD.php&MODIFICAR","M_REPORTES.php&REPORTE");
     ELSE $A_MODULOS=ARRAY("M_SELCAP.php&CARGA","M_REPORTES.php&REPORTE");
  ELSE
//     $A_MODULOS=ARRAY("M_REPORTES.php&REPORTES","USUARIOS&USUARIOS","VALIDACIONES&VALIDACIONES");
     $A_MODULOS=ARRAY("M_REPORTES.php&REPORTES");
  $V_OUT.="<BODY>";
  $V_OUT.="<BR>";
  $V_OUT.="<TABLE ID='MENU' CELLPADDING='0' CELLSPACING='0' WIDTH='150' >";
  $V_OUT.="<TR><TH CLASS='ROW1'> MENU </TH></TR>";
  FOREACH($A_MODULOS AS $V_MODULO)
  {
     $L_MODULO=EXPLODE("&",$V_MODULO);
     $V_OUT.="<TR><TD CLASS='ROW1'><A href='".$L_MODULO[0]."' TARGET='FRAME_BODY'>".$L_MODULO[1]."</A></TD></TR>";
  }
  IF ($G_DIVISION=='')
    $V_OUT.="<TR><TD CLASS='ROW1'><A HREF='M_LOGIN.php' TARGET='_parent'>INICIAR SESION</A></TD></TR>";
  ELSE
    $V_OUT.="<TR><TD CLASS='ROW1'><A HREF='M_LOGOUT.php' TARGET='_parent'>CERRAR SESION</A></TD></TR>";


  $V_OUT.="</TABLE><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>";

/*  $V_OUT.="<TABLE WIDTH='150' HEIGHT='300' BACKGROUND='imagenes/pizarra.jpg' >";
  $V_OUT.="<TR><TD HEIGHT='40'>&nbsp;</TD></TR>";
  $V_OUT.="<TD HEIGHT='250'>";
  $F_LINK=FOPEN('S_BANNER.php','r');
  $V_BANNER=FREAD($F_LINK,FILESIZE('S_BANNER.php'));
  FCLOSE($F_LINK);
  $V_OUT.=$V_BANNER;
  $V_0UT.="</TD>";
  $V_OUT.="</TABLE>";
*/
  $V_OUT.="</BODY>";
  $V_OUT.="</HTML>";
  ECHO $V_OUT;
?>


